﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlMenuPrivate.ascx.cs" Inherits="Usercontrol_ControlMenuPrivate" %>
<%@ Import Namespace="webapp4U" %>
<style type="text/css">

  #menu li a {display:inline-block;}
  
  #menu  li a {display:block;}
 
  ul#menu, ul#menu ul {
  list-style-type:none;
  margin: 0;
  padding: 0;
  width: 15em;
}

ul#menu a {
  display: block;
  text-decoration: none;	
}

ul#menu li {
  margin-top: 1px;
}

ul#menu li a {
  background: #333;
  color: #fff;	
  padding: 0.5em;
}

ul#menu li a:hover {
  background: #000;
}

ul#menu li ul li a {
  background: #ccc;
  color: #000;
  padding-left: 20px;
}

ul#menu li ul li a:hover {
  background: #aaa;
  border-left: 5px #000 solid;
  padding-left: 15px;
}

 
  </style>
   

<ul id="menu">
<asp:Repeater ID="rpt_subsubcategory"  runat="server">
            <ItemTemplate>
<li>	
	<a href="<%=Globals.ApplicationPath %><%# Eval("MenuLink") %>"><%# Eval("MenuName")%></a>
    <asp:Label Visible="false" ID="lblRoot2" runat="server" Text='<%# Eval("MenuID")%>'>
                              </asp:Label>
        <ul>
         <asp:Repeater ID="rpt_subsubcategory" DataSourceID="SqlDataSource2" runat="server">
            <ItemTemplate>
                    <li><a href="<%=Globals.ApplicationPath %><%# Eval("MenuLink") %>"><%# Eval("MenuName")%></a></li>
            </ItemTemplate>
         </asp:Repeater>
       </ul>
</li>
 <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:SqlServices %>" 
                                                    SelectCommand="k_getMenuPrivate2" SelectCommandType="StoredProcedure">
                                                    <SelectParameters>
                                                        <asp:ControlParameter ControlID="lblRoot2" Type="String" Name="MenuID" />
                                                         <asp:SessionParameter Name="TypeID" SessionField="TypeID" Type="String" />
                                                    </SelectParameters>
                                                </asp:SqlDataSource>
 </ItemTemplate>
         </asp:Repeater>
</ul>